// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.config.productionTip = false

/* eslint-disable no-new */
Vue.use(ElementUI)

var vvm = new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App },
  
//data:{
//	
//},
//mounted:function ( ) { // 页面加载完成后会调用此函数
//      this.$nextTick(function () { // 加个函数可以保证 this和vm是一样 都可以掉用
//          this.management();
//      })
//  },
//	methods:{
//		management:function () {
//          this.$http.get('../data.json').then(res => { //作用域指向了外层 里面的this就是外面的this
//              vm.list = res.body.result.list;
//              console.log(vm.list)
//          }); // 调用http方法
//      },
////      search:function(){
////			if(this.name ==){
////				this.ok = !this.ok;
////			}
////      },
//      
//	}
})
